﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<timetableasy.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Register Speaker
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Register Speaker</h2>
    <p>
        Use the form below to create a new account.
    </p>
    <p>
        Passwords are required to be a minimum of
        <%= Html.Encode(ViewData["PasswordLength"]) %>
        characters in length.
    </p>
    <% using (Html.BeginForm()) {%>
    <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <fieldset>
            <legend>Account Information</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.FirstName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.FirstName)%>
                <%= Html.ValidationMessageFor(m => m.FirstName)%>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.LastName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.LastName)%>
                <%= Html.ValidationMessageFor(m => m.LastName)%>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Login) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Login)%>
                <%= Html.ValidationMessageFor(m => m.Login)%>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Email) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Email) %>
                <%= Html.ValidationMessageFor(m => m.Email) %>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Password) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.Password) %>
                <%= Html.ValidationMessageFor(m => m.Password) %>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.ConfirmPassword) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>
            <p>
                <%--<%=Html.ActionLink("Submit","RegisterAccount") %>--%>
                <input type="submit" value="Register" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

